package com.chunyu.ask.controller;

import javax.servlet.http.HttpServletRequest;

import org.springframework.ui.Model;
import org.springframework.web.bind.annotation.ModelAttribute;

public class BaseController {
	@ModelAttribute
	void initPath(HttpServletRequest request,Model model){  
		model.addAttribute("base", request.getContextPath());
	}
}
